import request from '@/utils/request'

// 查询帮扶管理列表
export function listAssist(query) {
  return request({
    url: '/education/assist/list',
    method: 'get',
    params: query
  })
}

// 查询帮扶管理详细
export function getAssist(id) {
  return request({
    url: '/education/assist/' + id,
    method: 'get'
  })
}


// 查询帮扶管理详细
export function getAssistByCode(code) {
  return request({
    url: '/education/assist/getAssistByCode/' + code,
    method: 'get'
  })
}


// 新增帮扶管理
export function addAssist(data) {
  return request({
    url: '/education/assist',
    method: 'post',
    data: data
  })
}

// 修改帮扶管理
export function updateAssist(data) {
  return request({
    url: '/education/assist',
    method: 'put',
    data: data
  })
}

// 删除帮扶管理
export function delAssist(id) {
  return request({
    url: '/education/assist/' + id,
    method: 'delete'
  })
}
